[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Max Chernoff
ne. > Indeed, no need to show of the obvious > > \definebar >[mybar] >[backgroundbar] >[height=\strutht,depth=\strutdp,offset=.250ex,color=red] > > [...] That looks perfect, thanks! -- Max __

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
ct, thanks! The "\definebar[...][inlined]" doesn't look quite right though -- the issue that I'm having is that I can't figure out how to highlight across both sides of an \alignhere without any questionable hacks. Unless the new "inlined" does work across an \alignhere and I'm jus

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Mikael Sundqvist
Hi, On Wed, Mar 13, 2024 at 11:37 AM Max Chernoff wrote: > > Hi Hans, > > On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote: > > the next upload will support the attached ... so no ugly hacky code needed > > "\texthere[inbetween]" looks perfect, thanks

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Max Chernoff
Hi Hans, On Tue, 2024-03-12 at 15:21 +0100, Hans Hagen wrote: > the next upload will support the attached ... so no ugly hacky code needed "\texthere[inbetween]" looks perfect, thanks! The "\definebar[...][inlined]" doesn't look quite right though -- the issue that I'm

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
| www.pragma-ade.nl | www.pragma-pod.nl - inter-001.pdf Description: Adobe PDF document \definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c \breakhere \myba

Re: [NTG-context] new upload

2022-04-21 Thread Alexandre Christe via ntg-context
ry much for the upload and the tutorial on 'adaptive'. It seems > very > > impressive and right away, one application which I could think of in my > case > > is its use in denoting prosodic elements in verses (of poems). For this > > purpose I was using \definebar, \setupbar so far t

Re: [NTG-context] new upload

2022-04-20 Thread Hans Hagen via ntg-context
and the tutorial on 'adaptive'. It seems very impressive and right away, one application which I could think of in my case is its use in denoting prosodic elements in verses (of poems). For this purpose I was using \definebar, \setupbar so far to indicate certain types of elements of verses; now I think

Re: [NTG-context] new upload

2022-04-19 Thread śrīrāma via ntg-context
'adaptive'. It seems very impressive and right away, one application which I could think of in my case is its use in denoting prosodic elements in verses (of poems). For this purpose I was using \definebar, \setupbar so far to indicate certain types of elements of verses; now I think this being far more

Re: [NTG-context] double underbars

2021-11-30 Thread Hans Hagen via ntg-context
copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do \definebar[underbardot][undergraphic][mp=rules:under:bardots] and play with the mp until you are happy with the output. But the problem is that you have to create an “underbardot

Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
t; (l. 327) Any hints how I could get this started? > > Yes, that is the right part to get started with. You could just copy the whole > \startuseMPgraphic and rename it for editing (to let’s say > rules:under:bardots), then do > > \definebar[underbardot][undergraphic][mp=ru

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context
t copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do \definebar[underbardot][undergraphic][mp=rules:under:bardots] and play with the mp until you are happy with the output. But the problem is that you have to create an “underbardot" that co

Re: [NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-24 Thread Jairo A. del Rio
\setupinteraction[...style=\MyUrl...]` either it > > doesn't work or displays a background which doesn't break well across > > lines. > > | > > > > |Is there a workaround or another method? Maybe a feature request for a > > more customizable setup for references? I had the same problem so

Re: [NTG-context] Concerning text backgrounds (and further tuning) in references

2020-10-24 Thread Wolfgang Schuster
across lines. | |Is there a workaround or another method? Maybe a feature request for a more customizable setup for references? I had the same problem some time ago and I guess some others too. \definebar [urlbackground] [color=yellow, order=background, continue=yes

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
Lukas/ConTeXt schrieb am 09.06.2020 um 20:28: Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar

Re: [NTG-context] [overstrike] with different color?

2020-06-05 Thread Henning Hraban Ramm
> > \setupbar[color=red,rulethickness=.3,offset=0.5] According to https://wiki.contextgarden.net/Command/underbar, offset should work. Maybe \definebar behaves different to \setupbar Hraban ___ If your question is

[NTG-context] Bar within math

2020-05-30 Thread context
Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar $1 + 2 = \startbar[MyBar

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-16 Thread Aditya Mahajan
is probably: \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes] I had that earlier, but unfortunately there is also the tag, and this does not work the way I want: %%% \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes] \definebar[tacoover][method=1,dy=-0.4,offset=0.5,continue

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Taco Hoekwater
> On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni wrote: > > I guess it works fine for me on beta 2019.01.07 16:10. Thanks for testing. Sorry, I should have checked myself. > On 15 Jan 2019, at 15:22, Hans Hagen wrote: > works her ebut better is probably: > > \defin

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Hans Hagen
, even for the first and last line. Is there any way to have underlining + line breaks behave correctly? (perhaps not using text backgrounds at all?) My current code is attached. works her ebut better is probably: \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes] \starttext Here

Re: [NTG-context] How to clone \underbar?

2016-10-19 Thread Wolfgang Schuster
Florian Leupold <mailto:fleup...@posteo.net> 19. Oktober 2016 um 14:51 Dear list, how can I clone \underbar (for the purpose of changing settings for the clone afterwards)? Just using \definebar to inherit \underbar’s properties does not entirely work, see MWE: \definebar[myBar][un

[NTG-context] How to clone \underbar?

2016-10-19 Thread Florian Leupold
Dear list, how can I clone \underbar (for the purpose of changing settings for the clone afterwards)? Just using \definebar to inherit \underbar’s properties does not entirely work, see MWE: \definebar[myBar][underbar] \starttext underbar text mode: \underbar{$a^b$}\crlf underbar

Re: [NTG-context] Nonbreaking, non-vanishing horizontal spaces above underbar

2016-09-14 Thread Hans Hagen
cannot find a way of scaling the leading and trailing space to equal 0.2 times the width of the text above the underbar. MNWE: \definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5] \unexpanded\def\Clozed#1{\startbar[ClozedBar] \zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1

Re: [NTG-context] Nonbreaking, non-vanishing horizontal spaces above underbar

2016-09-14 Thread Hans Hagen
and trailing space to equal 0.2 times the width of the text above the underbar. MNWE: \definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5] \unexpanded\def\Clozed#1{\startbar[ClozedBar] \zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1}\zwj\stopbar} \starttext \Clozed

[NTG-context] Nonbreaking, non-vanishing horizontal spaces above underbar

2016-09-14 Thread Florian Leupold
of the text above the underbar. MNWE: \definebar[ClozedBar][underbar][continue=yes, color=black, offset=-0.5] \unexpanded\def\Clozed#1{\startbar[ClozedBar] \zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1}\zwj\stopbar} \starttext \Clozed{\color[red]{CLOZE 1}} text text text text text

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 16:28, Florian Leupold <fleup...@posteo.net> wrote: > > >> On 04.09.16, at 14:14, Hans Hagen <pra...@wxs.nl> wrote: >> >> On 9/4/2016 12:03 PM, Hans Hagen wrote: >> >>> \definebar[ClozedBar][underbar][continue=yes] &

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Florian Leupold
> On 04.09.16, at 14:14, Hans Hagen <pra...@wxs.nl> wrote: > > On 9/4/2016 12:03 PM, Hans Hagen wrote: > >> \definebar[ClozedBar][underbar][continue=yes] >> >> \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}} >> >> \starttext >> >>

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Hans Hagen
On 9/4/2016 12:03 PM, Hans Hagen wrote: \definebar[ClozedBar][underbar][continue=yes] \unexpanded\def\Clozed#1{\ClozedBar{\zwj#1\zwj}} \starttext \input ward \Clozed{\color[red]{CLOZE 1}} \input ward \Clozed{\quad\color[red]{CLOZE 2}\quad} \input ward \Clozed{\color[white]{x}\quad\color[red

Re: [NTG-context] Creating cloze texts

2016-09-04 Thread Hans Hagen
r[green]{x}\quad\color[red]{CLOZE 4}\quad\color[white]{x}} \input ward space \underbar{\color[red]{CLOZE 5}\qquad\color[white]{x}} space \input ward \stoptext I would greatly appreciate help with this problem. \definebar[ClozedBar][underbar][continue=yes] \unexpanded\def\Clozed#1{\ClozedBar{

Re: [NTG-context] Underbar offset

2016-05-24 Thread Hans Hagen
=-.5] \starttext \underbar{Test this \high{\tfxx ®}} \stoptext The color keyword works, but offset doesn't seem to have any effect even though it's listed in the reference. I was able to address the second problem (adding more offset) with something like \definebar[BarU][offset=-0.7

[NTG-context] Underbar offset

2016-05-23 Thread Mojca Miklavec
offset? The color keyword works, but offset doesn't seem to have any effect even though it's listed in the reference. I was able to address the second problem (adding more offset) with something like \definebar[BarU][offset=-0.7] \startbar[BarU] ... \stopbar but I wasn't able to get rid

Re: [NTG-context] How can I define a dotted underbar in ConTeXt?

2016-02-15 Thread Hans Hagen
the value of RuleFactor)? rulethickness and, as you like challenges ... \starttext \startuseMPgraphic{overarrow} drawarrow ((0,RuleFactor/2) -- (RuleWidth,RuleFactor/2)) withcolor RuleColor withpen pencircle scaled RuleThickness ; \stopuseMPgraphic \definebar[overarrow] [mp

Re: [NTG-context] URLs in color including underbar

2015-05-18 Thread Alexander Shukaev
​​ \definebar[urlbar][underbar] \setupurl[style=\mono\urlbar,color=blue] ​Interesting, thank you, Hans, it indeed works as expected. Could you supplement this with some explanations, i.e. why this one works compared to using plain `underbar'?​ I assume that the `color' key is overridden

Re: [NTG-context] URLs in color including underbar

2015-05-18 Thread Hans Hagen
}}, color={\urlparameter{color}}, ]% \from[#1]% \endgroup } Is there a more natural way to make URLs appear in blue color including maybe just: \definebar[urlbar][underbar] \setupurl[style=\mono\urlbar,color=blue

Re: [NTG-context] Strike out font

2015-04-25 Thread Wolfgang Schuster
, % rulethickness=1pt, ] \starttext text \strikethrough{text} text \input ward \startstrikethrough \input ward \stopstrikethrough \input ward \stoptext Method 2: \definebar [strikethrough] [method=0, offset=0.6, continue=yes, % rulethickness=0.2, ] \starttext text \strikethrough

[NTG-context] Underbar quotation

2012-10-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, in the following example the space before the leading quotation mark (between 'f' and 'g') is not colored: \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext \MyBar{Abc def \quotation{ghi}.} \stoptext How to make the bar

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Aditya Mahajan
and foregroupdstyle keys to \definebar? (Then, bars will be an appropriate and versatile mechanism to define syntax highlighting regions). Aditya___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] colors for pretty-printing

2010-12-07 Thread Hans Hagen
foregroundcolor and foregroupdstyle keys to \definebar? (Then, bars will be an appropriate and versatile mechanism to define syntax highlighting regions). maybe Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Hans Hagen
\startmyBG \dorecurse{30}{bla }\stopmyBG bla bla \stoptext \starttext \startbuffer \definebar [backbar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=background] \definebar [forebar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=foreground

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Peter Münster
On Thu, Feb 11 2010, Hans Hagen wrote: \definebar [backbar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=background] Great, many thanks for this hidden feature! What is the logic behind offset and rulethickness (the units and the reference point)? (I played a bit

Re: [NTG-context] What do you miss in ConTeXt?

2010-02-11 Thread Hans Hagen
On 11-2-2010 14:48, Peter Münster wrote: On Thu, Feb 11 2010, Hans Hagen wrote: \definebar [backbar] [offset=1.5,rulethickness=2.4,color=blue, continue=yes,order=background] Great, many thanks for this hidden feature! What is the logic behind offset and rulethickness (the units